package com.logwire.enmus;import lombok.AllArgsConstructor;import lombok.Getter;public interface Organize {	@AllArgsConstructor	@Getter	enum Dept {		COMPANY(1, "公司"),		DEPARTMENT(2, "部门"),		;		private final Integer code;		private final String name;		public static Organize.Dept getInstance(Integer code) {			for (Organize.Dept value : Organize.Dept.values()) {				if (value.getCode().equals(code)) {					return value;				}			}			return null;		}	}}